/*-------------------------------------------------------------------------

***************** Modification History ***********************************
   @doc
   @module mdlfuncs.h - Header file for Card Type functionality |
   @end
   
$Log: /SoftPay/SPK2SIM/Source/Include/mdlfuncs.h $ 
**************************************************************************

   Copyright (C) 1999 by VeriFone, Inc.

   All rights reserved.  No part of this software may be reproduced,
   transmitted, transcribed, stored in a retrieval system, or translated
   into any language or computer language, in any form or by any means,
   electronic, mechanical, magnetic, optical, chemical, manual or otherwise,
   without the prior written permission of VeriFone, Inc.

---------------------------------------------------------------------------*/

#include <dbmgr.h>
#include <define.h>
#include <accum.h>
#include <card.h>
#include <transact.h>

VS_BOOL fChkAllHostBatches (TRANSACTION_OBJECT *pobTran);
VS_BOOL fChkAllOpenTabBatches (TRANSACTION_OBJECT *pobTran);
VS_BOOL fOpenTabEmpty (TRANSACTION_OBJECT *pobTran);
VS_BOOL fBatchEmpty (TRANSACTION_OBJECT *pobTran, VS_BOOL fClose);
int inGetBatchRecCnt (DB_FILE *psrDBF);
int inGetOTBatchRecCnt (TRANSACTION_OBJECT *pobTran);
int inGetDCBatchRecCnt (TRANSACTION_OBJECT *pobTran);
int inResetAccum (void);
int inGetHostTotals (TRANSACTION_OBJECT *pobTran, ACCUM_REC *psrHostTotals);
void vdFlushCardBuffer(void);
int inCheckTrackOneData (struct TRACK *psrCardData, int inResult);
int inCheckTrackTwoData (struct TRACK *psrCardData, int inResult);
int inCheckTrackThreeData (struct TRACK *psrCardData,int inResult);
void vdGetCardParseError (long lnErrNum);
VS_BOOL fFPSNoAuthRequired(TRANSACTION_OBJECT *pobTran);
int inRunFunction ( TRANSACTION_OBJECT *pobTran, int inFieldID );
int inValidateISDN_TEST_TRANSACTION (void);
int inColdInitPinpad(TRANSACTION_OBJECT *pobTran);
int MDLFUNCS_CODE_CHECK(char * a,char *b,short *  c,char * d,unsigned char * e);
VS_BOOL fCustomFPSQualifier(TRANSACTION_OBJECT *pobTran);
int inDefaultFPSQualifierFunction (TRANSACTION_OBJECT *pobTran);
void vdMakeAndSetApprCode(TRANSACTION_OBJECT *pobTran);
int inFPSRespMessage ( TRANSACTION_OBJECT *pobTran);
int inColdInitRadioModem(TRANSACTION_OBJECT *pobTran);

